package com.mask.im.business.strategy.impl.context;
import com.mask.im.business.enums.RegisterStrategyEnum;
import com.mask.im.business.model.vo.RegisterVO;
import com.mask.im.business.strategy.RegisterStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Map;

@Service
public class RegisterStrategyContext {


	@Autowired
	private Map<String, RegisterStrategy> registerHashMap;


	public void executeStrategyRegister(String type, RegisterVO registerVO){
		registerHashMap.get(RegisterStrategyEnum.getStrategy(type)).register(registerVO);
	}
}
